<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
  </head>
  <body>
    <h1><%= title %></h1>
    <p>Welcome to <%= title %></p>
  </body>

  <script>
      window.addEventListener('message',function(event) {
        var data = event.data;
        if(data.isAjax) {
          $.get("/api/userInfo",function(d){
            parent.postMessage({d:JSON.stringify(d),fun:data.time},parent.location.hostname)
          })
        }
    });
  </script>

</html>
